import request from '@/utils/request'
import qs from 'qs'

export function savePageSetting(data) {
  return request({
    url: '/systemSet/systemSet/savePageSetting',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function getPageSetting(data) {
  return request({
    url: '/systemSet/systemSet/getPageSetting',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function saveWholeSearchSetting(data) {
  return request({
    url: '/systemSet/systemSet/saveWholeSearchSetting',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function getWholeSearchSetting(data) {
  return request({
    url: '/systemSet/systemSet/getWholeSearchSetting',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function clearSetting(data) {
  return request({
    url: '/systemSet/systemSet/clearSetting',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function addOrUpdateSystemSet(data) {
  return request({
    url: '/system/config/addOrEdit',
    method: 'post',
    data: data
  })
}
export function renew(data) {
  return request({
    url: '/system/config/renew',
    method: 'post',
    data: data
  })
}
export function getSystemSet(data) {
  return request({
    url: '/system/config/getInfoByCompany/' + data,
    method: 'get'
  })
}
